export const delay = async (time) => {
	return new Promise(resolve => {
		setTimeout(() => {resolve();}, time);
	});
}
export const baseURL = process.env.NODE_ENV === 'development' ? 'http://192.168.1.8:8084/api' : ''



/*
 *  判断当前是否移动端
 */
export function isMobile() {
	if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) { //移动端
		return true
	}
	return false
}